import { createSlice } from "@reduxjs/toolkit";
const ossStore = createSlice({
    name: "oss",
    initialState: {
        config: {
            OSSAccessKeyId: "",
            host: "",
            policy: "",
            signature: "",
        }
    },
    reducers: {
        // 定义reducer
        setOssConfig: (state, action) => {
            state.config = action.payload
        }
    },
})
const { actions } = ossStore
const { setOssConfig } = actions
export { setOssConfig };
export default ossStore.reducer;